//
//  MOrder.h
//  RRQS
//
//  Created by kyjun on 16/3/24.
//
//

#import <Foundation/Foundation.h>
#import "MSubOrder.h"
#import "MStore.h"

@interface MOrder : NSObject

-(instancetype)initWithItem:(NSDictionary*)item;
-(instancetype)initWithOrder:(NSDictionary*)item;
-(instancetype)initWithStore:(NSDictionary*)item;

-(instancetype)initWithFished:(NSDictionary*)item;

/**
 *  主订单编号
 */
@property(nonatomic,strong) NSString* rowID;
/**
 *  主订单收货地址
 */
@property(nonatomic,strong) NSString* address;
 @property(nonatomic,strong) NSString* addressRoad;
/**
 *  主订单金额
 */
@property(nonatomic,strong) NSString* totalMoney;
/**
 *  主订单配送费
 */
@property(nonatomic,strong) NSString* shipFee;
/**
 *  主订单创建时间
 */
@property(nonatomic,strong) NSString* createDate;



#pragma mark =====================================================  
/**
 *  快递ID
 */
@property(nonatomic,strong) NSString* empID;
/**
 *  下单时间
 */
@property(nonatomic,strong) NSString* addTime;
/**
 *  取货时间
 */
@property(nonatomic,strong) NSString* getTime;
/**
 *  送达时间
 */
@property(nonatomic,strong) NSString* sendTime;
/**
 *  快递耗时 (times)
 */
@property(nonatomic,strong) NSString* spendTime;

/**
 *  订单备注
 */
@property(nonatomic,strong) NSString* orderMark;

/**
 *  订单状态 (status)
 */
@property(nonatomic,assign) EnumExpressStatus status;

/**
 *  子订单列表
 */
@property(nonatomic,strong) NSMutableArray* arraySubOrder;


@property(nonatomic,strong) NSMutableArray* arrayStore;

@property(nonatomic,strong) NSArray* arrayGoodsName;


@end

